Repository navigation
fix(server): wake a PR watch when checks still running after a failure finish - #8
Merged
Merged
Conversation
…e finish A failure wake tells the agent to end its turn and promises a wake on the next change. When other checks were still running, nothing woke the agent once they finished: a wake needed a newly failed check or a green gate, and the owed-checks path only ran after a pass. An agent waiting on the rest of a run after one early failure stayed asleep for good. A failure wake now records the checks still pending as owed. When they have all finished with no new failure, the watch wakes once with "All N checks finished, and M failed" and lists the current failures. A new failure among them still reports as a plain failure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A failure wake tells the agent to end its turn and says T3 Code wakes it on the next change. If other checks were still running at that point, their finish woke nobody. A wake needed a newly failed check or a green gate, and the owed-checks path only ran after a pass. An agent that ended its turn to wait for the rest of the run stayed asleep.
Seen on caniko/paperclip#18. Wakes fired for
review(13:44Z) andprofile retention(14:55Z). The agent ended its turn while three exact-head lanes were still pending. They finished by 17:31Z with no new failures, and no wake came.Fix: a failure wake now saves the checks still pending in
owedChecks. Once they have all finished with no new failure, the watch wakes once withAll N checks finished on <sha>, and M failed:and lists the current failures. A new failure among them still reports aschecks-failed, so no second wake is sent.Checks: a new case in
pullRequestWatch.test.tsfails on main and passes with the fix.vp run check:changedpasses format, lint, typecheck and tests.knip 2/2reports unused exports inapps/server/src/runner/*, which main already has. I didn't run the paid evals. The wake text adds one new line and leaves the existing lines unchanged.🤖 Generated with Claude Code